home *** CD-ROM | disk | FTP | other *** search
- @echo off
- REM kontrole van gebruik
-
- if .%1 == . goto gebruik
-
- REM **************************************************************************
-
- REM informatie
- set net_error=0
- @echo DUE TO BEING OFF-LINE OR DENIED ACCESS THE FOLLOWING STATIONS DIDN'T RECEIVE SWD >zlog
- @echo -------------------------------------------------------------------------------- >>zlog
- REM %1 == MACHINE NAME TO COPY TO
- REM *************************************************************************
- REM errorlevel 53 ==== Cannot locate network name
- REM errorlevel 85 ==== Login to the network NODE
- REM errorlevel 86 ==== Invalid USR name
- REM *************************************************************************
-
- REM START
-
- REM ************************** MACHINE **************************************
- @echo off
- set net_error=???
- rem station MACHINE
- net/noerror logout %1
- net/noerror login %1 lvg a
- if %net_error%==53 goto xma
- if %net_error%==86 goto xm
- if %net_error%==85 goto xmac
- :xmac
- net/noerror use h: \\%1\c-drive
- copy e:\upd_net\all\*.* h:\cds_sys\*.* >>zlog
- net/noerror logout %1
- goto xx
- :xma
- @echo %1 (OFFLINE) >>zlog
- @echo %1 >>bdvlog
- @echo %1 ******************************* OFFLINE !!
- goto xxx
- :xm
- @echo %1 VERKEERD ********************* PASWOORD !!
- @echo %1 (ACCESS DENIED) >>zlog
- @echo %1 >>bdvlog
- goto xxx
- :xx
- @echo %1 finished.
- :xxx
-
- REM ********************************* EINDE ***********************************
- goto einde
- :gebruik
- @echo USAGE (XZCOPY {MACHINE})
- :einde
-